function queryIp(that) {
    var ip = that.attr('data-ip');
    var url = that.attr('data-url');
    layer.confirm('确定要查询IP【'+ip+'】归属地吗？', {title:'请确认'},function (index) {
        layer.close(index);
        $(that).prev('.layui-icon-loading').show();
        $(that).text('查询中');
        setTimeout(function (){
            $.ajax({
                type: 'GET',
                url: url,
                data: {ip: ip},
                dataType: "json",
                success: function (data) {
                    $(that).prev('.layui-icon-loading').hide();
                    if (data.code == 1) {
                        notify.success(data.msg);
                        $(that).text(data.result);
                        $(that).attr('onclick','');
                    }else{
                        notify.error(data.msg);
                    }
                }
            });
        },500)
    });
}
